class CreatePhotos < ActiveRecord::Migration[5.0]
  def change
    create_table :photos do |t|
      t.string :slug
      t.string :image

      t.string :name
      t.string :width
      t.string :height
      t.string :size
      t.string :version
      t.string :format

      t.timestamps
    end
    add_index :photos, :slug, unique: true
  end
end
